import React from "react";
import {LoadingOutlined} from "@ant-design/icons";

interface LoadingProps {
  className?: string;
}

const Loading: React.FC<LoadingProps> = props => {
  return (
    <div
      className={props.className}
      style={{
        width: "100%",
        height: "100%",
        display: "flex",
        alignItems: "center",
        justifyContent: "center"
      }}
    >
      <LoadingOutlined/>
      <span style={{marginLeft: 10}}>加载中...</span>
    </div>
  );
};

export default Loading;
